package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.UpAndDownSize;
import com.wanlian.netty.msg.MsgType;

/**
 * 设备限速
 */
public class DeviceLimitGetRsMsg extends BaseMsg {

    private UpAndDownSize upAndDownSize;

    public DeviceLimitGetRsMsg() {
        super();
        this.setType(MsgType.DEVICE_LIMITSPEED_RSP);
    }

    public UpAndDownSize getUpAndDownSize() {
        return upAndDownSize;
    }

    public void setUpAndDownSize(UpAndDownSize upAndDownSize) {
        this.upAndDownSize = upAndDownSize;
        this.setContent(JsonStringUtil.writeValueAsString(upAndDownSize));
    }
}
